Source File
expand.go
Belonging Package
github.com/PuerkitoBio/goquery
package goqueryimport// Add adds the selector string's matching nodes to those in the current// selection and returns a new Selection object.// The selector string is run in the context of the document of the current// Selection object.func ( *Selection) ( string) *Selection {return .AddNodes(findWithMatcher([]*html.Node{.document.rootNode}, compileMatcher())...)}// AddMatcher adds the matcher's matching nodes to those in the current// selection and returns a new Selection object.// The matcher is run in the context of the document of the current// Selection object.func ( *Selection) ( Matcher) *Selection {return .AddNodes(findWithMatcher([]*html.Node{.document.rootNode}, )...)}// AddSelection adds the specified Selection object's nodes to those in the// current selection and returns a new Selection object.func ( *Selection) ( *Selection) *Selection {if == nil {return .AddNodes()}return .AddNodes(.Nodes...)}// Union is an alias for AddSelection.func ( *Selection) ( *Selection) *Selection {return .AddSelection()}// AddNodes adds the specified nodes to those in the// current selection and returns a new Selection object.func ( *Selection) ( ...*html.Node) *Selection {return pushStack(, appendWithoutDuplicates(.Nodes, , nil))}// AndSelf adds the previous set of elements on the stack to the current set.// It returns a new Selection object containing the current Selection combined// with the previous one.// Deprecated: This function has been deprecated and is now an alias for AddBack().func ( *Selection) () *Selection {return .AddBack()}// AddBack adds the previous set of elements on the stack to the current set.// It returns a new Selection object containing the current Selection combined// with the previous one.func ( *Selection) () *Selection {return .AddSelection(.prevSel)}// AddBackFiltered reduces the previous set of elements on the stack to those that// match the selector string, and adds them to the current set.// It returns a new Selection object containing the current Selection combined// with the filtered previous onefunc ( *Selection) ( string) *Selection {return .AddSelection(.prevSel.Filter())}// AddBackMatcher reduces the previous set of elements on the stack to those that match// the matcher, and adds them to the current set.// It returns a new Selection object containing the current Selection combined// with the filtered previous onefunc ( *Selection) ( Matcher) *Selection {return .AddSelection(.prevSel.FilterMatcher())}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |